import { createRouter, createWebHashHistory } from "vue-router";
import Home from "../views/Home.vue";
import Intelligent from "../views/page/szyhHome/SzyhHome.vue";
import Reasonrag from "../views/page/reasonrag.vue";
import MillionText from "../views/page/millionText.vue";
import ceshi from "../views/page/intelligent.vue";
// import ceshi from "../views/page/reasonrag.vue";

const routes = [
  //主页模块
  {
    path: "/",
    name: "home",
    component: Home,
    // redirect: "/",
  },
  {
    path: "/millionText",
    name: "millionText",
    component: MillionText,
  },
  {
    path: "/intelligent",
    name: "intelligent",
    component: Intelligent,
  },
  {
    path: "/reasonrag",
    name: "reasonrag",
    component: Reasonrag,
  },
    {
    path: "/ceshi",
    name: "ceshi",
    component: ceshi,
  },
];
const router = createRouter({
  // history: createWebHistory(process.env.NODE_ENV === 'production'? './webadmin': './'), 配置子目录
  history: createWebHashHistory(),
  routes,
});

export default router;
